package test;

class Bground extends Thread{
    public static void main(String argv[]){
        Bground b = new Bground();
        b.run();
    }
    public void start(){
        for(int i=0;i<10;i++){
            System.out.println("Value of i = "+i);
        }
    }
    public void quickSort(int[] arr,int left,int right){
        if (left<right){
            int start = arr[left];
            int low = left;
            int high = right;
            while (low<high){
                if (low<high && arr[high] >= start){
                    high--;
                }
                arr[low] = arr[high];
                if (low<high && arr[low] <= start){
                    low++;
                }
                arr[high] = arr[low];
            }
            arr[low] = start;
            quickSort(arr,left,low);
            quickSort(arr,low+1,right);
        }
    }
}




